home *** CD-ROM | disk | FTP | other *** search
- Path: news.eclipse.net!usenet
- From: steve@eclipse.net (Steve Teale)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ and dynamic loading of libraries
- Date: Mon, 05 Feb 1996 17:26:28 GMT
- Message-ID: <4f5em4$26u@lunar.eclipse.net>
- References: <4et0d8$dlc@news1.usa.pipeline.com>
- NNTP-Posting-Host: ne_36.eclipse.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- grantp@usa.pipeline.com(Pete) wrote:
-
- >On Feb 01, 1996 09:06:31 in article <C++ and dynamic loading of libraries>,
- >'u19809@kb.be (Wim Delvaux)' wrote:
- >
- >
- >>I would like to be able to load libraries generated from C++ from
- >>other C++ code. This is not a big problem but I would like to use the
- >>libraries ON DEMAND ie. when the application needs it and not at
- >>compile time. (Using LOADLIBRARY/FINDSYMBOL api calls of the dynamic
- >>loader components of several OS-ses : Windows, Linux, Unix, ...)
- >>
- >>There is however the problem of the name mangling : What is the name
- >>of the C++ function I need ?
- >>
- >>Does there exist (compiler-specific) API's to mangle/demangle that can
- >>be used from within an application ?
- >>Does anybody have other suggestions how to do this ?
- >>
- >
- >Read up on extern "C" declaration. It's covered in the
- >FAQ as well as your compiler documentation. But that
- >only suppresses C++ name mangling -- it doesn't have
- >anything to do with wether or not the library is static
- >or dynamic. If your library calls work OK when the lib
- >is statically linked, they should work OK when using
- >dynamic linking also.
- >
- >--
- >Pete Grant
- >Kalevi, Inc.
- >Object Oriented Software Development
-
- Alternatively, use IMPLIB or equivalent to build a stub library for
- the DLL, and look at the names in the library listing.
-
-
-
-